const { Model, DataTypes } = require('sequelize');

const sequelize = require('./database');


class Province extends Model {}

Province.init({
  provincename: {
    type: DataTypes.STRING,
    allowNull: false, 
    unique: true
  },
  provinceid: {
    type: DataTypes.INTEGER,
    allowNull: false,
    primaryKey:true,
  }
}, {
  sequelize,
  modelName: 'province'
});



module.exports = Province;